package com.heima.api.wemedia;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.media.dtos.WmNewsDto;
import com.heima.model.media.pojos.WmMaterialDto;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.multipart.MultipartFile;
@Api(tags = "图片相关api")
public interface WmMaterialControllerApi {

    /**
     * 上传图片
     * @param multipartFile
     * @return
     */
    @ApiOperation("上传图片")
    ResponseResult uploadPicture(MultipartFile multipartFile);

    @ApiOperation("素材列表查询")
    ResponseResult findList(WmMaterialDto dto);
    @ApiOperation("删除图片")
    ResponseResult delPicture(Integer id);
    @ApiOperation("取消收藏")
    ResponseResult cancelCollectionMaterial(Integer id);
    @ApiOperation("收藏图片")
    ResponseResult collectionMaterial(Integer id);


}